import { injectReducer } from '../../../store/reducers'

export default (store) => ({
  path: '/articleDetailed/:id',
  getComponent (nextState, cb) {
    require.ensure([], (require) => {
      const ArticleDetailed = require('./containers/ArticleDetailedContainer').default
      const reducer = require('./modules/articleDetailed').default
      injectReducer(store, { key: 'articleDetailed', reducer })
      cb(null, ArticleDetailed)
    }, 'articleDetailed')
  }
})
